#include <REGX52.H>

void UartInit(void)		//9600bps@11.0592MHz
{
	PCON |= 0x80;		//????????SMOD
	SCON = 0x50;		//8???,????? 
	TMOD &= 0x0F;		//?????1???
	TMOD |= 0x20;		//?????1?8???????
	TL1 = 0xFA;		//??????
	TH1 = 0xFA;		//????????
	ET1 = 0;		//?????1??
	TR1 = 1;		//?????1
	EA = 1;
	ES = 1;
}


void Uart_sendbyte(unsigned char byte)
{
	
	SBUF=byte;
	while(TI==0);
	TI=0;
}

